package com.project.zsxd.server.clocksleep.mapper;

import com.project.zsxd.server.clocksleep.entity.ClockSleep;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.zsxd.server.clocksleep.vo.ClockSleepVO;

import java.util.List;

/**
 * <p>
 * 睡眠打卡表 Mapper 接口
 * </p>
 *
 * @author kaler
 * @since 2020-09-23
 */
public interface ClockSleepMapper extends BaseMapper<ClockSleep> {

    /**
     * 查询最近30天的入睡时间
     * @param userName
     * @return
     */
    List<ClockSleepVO> queryLastMonthSleepTimes(String userName);

}
